package com.xing.acl.service;

import com.xing.acl.entity.Permission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 权限 服务类
 * </p>
 *
 * @author xingfuao
 * @since 2022-04-19
 */
public interface PermissionService extends IService<Permission> {


    /**
     * 获取全部菜单
     * @return
     */
    List<Permission> queryAllMenuGuli();

    //递归删除菜单
    void removeChildById(String id);

    //给角色分配权限
    void saveRolePermissionRealtionShipGuli(String roleId, String[] permissionId);
}
